<?php 
include("classes/include.php");

if(isset($_POST['resetAge'])){
$requete = new RequeteSQL("delete from agenda");
$requete->executeQuery();
echo "table agenda efface";	
}
if(isset($_POST['resetDoc'])){
$requete = new RequeteSQL("delete from document");
$requete->executeQuery();
echo "table document efface";	
}

if(isset($_POST['resetEnt'])){
$requete = new RequeteSQL("delete from entreprise");
$requete->executeQuery();
echo "Les informations de la table entreprise ont ete efface";	
}


if(isset($_POST['resetEtu'])){
$requete = new RequeteSQL("delete from etudiant");
$requete->executeQuery();
echo "Les informations de la table etudiant ont ete effacees";	
}

if(isset($_POST['resetOff'])){
$requete = new RequeteSQL("delete from offre");
$requete->executeQuery();
echo "Les informations de la table offre ont ete effacees";	
}


if(isset($_POST['resetPro'])){
$requete = new RequeteSQL("delete from professeur");
$requete->executeQuery();
echo "Les informations de la table professeurs ont ete effacees";	
}

if(isset($_POST['resetRes'])){
$requete = new RequeteSQL("delete from responsableentreprise");
$requete->executeQuery();
echo "Les informations de la table offre ont ete effacees";	
}
if(isset($_POST['resetSta'])){
$requete = new RequeteSQL("delete from stage");
$requete->executeQuery();
echo "Les informations de la table stage ont ete effacees";	
}
if(isset($_POST['resetUti'])){
$requete = new RequeteSQL("delete from utilisateur");
$requete->executeQuery();
echo "Les informations de la table utilisateur ont ete effacees";	
}
if(isset($_POST['resetAll'])){
$requete = new RequeteSQL("delete from offre");
$requete->executeQuery();
$requete = new RequeteSQL("delete from utilisateur");
$requete->executeQuery();
$requete = new RequeteSQL("delete from stage");
$requete->executeQuery();
$requete = new RequeteSQL("delete from responsableentreprise");
$requete->executeQuery();
$requete = new RequeteSQL("delete from professeur");
$requete->executeQuery();
$requete = new RequeteSQL("delete from offre");
$requete->executeQuery();
$requete = new RequeteSQL("delete from etudiant");
$requete->executeQuery();
$requete = new RequeteSQL("delete from entreprise");
$requete->executeQuery();
$requete = new RequeteSQL("delete from document");
$requete->executeQuery();
$requete = new RequeteSQL("delete from agenda");
$requete->executeQuery();

echo "Les informations de la base ont ete effacees";	
}

















?>